<?php

class QueryDto
{
    private $keyword;
    private $typeId;

  /*  public function __set($_key,$_val)
    {
        $this->$this = $_val;
    }*/

    public function __get($_key)
    {
        return $this->$_key;
    }

    public function __construct(array $data) {
        foreach ($data as $key => $value) {
            if (property_exists($this, $key)) {
                $this->$key = $value;
            }
        }
    }
}